package org.syyo.admin.mapper;

import org.syyo.admin.domain.request.RoleReq;
import org.syyo.admin.domain.response.RoleResp;

import java.util.List;

/**
 * @Auther: wangzhong
 * @Date: 2019/10/8 17:07
 * @Description:
 */
public interface RoleMapper {

    int addRole(RoleReq req);

    int delRole(Integer roleId);

    int editRole(RoleReq req);

    RoleResp getRole(Integer roleId);

    List<RoleResp> listRole(RoleReq req);

    int checkRole(String roleKey);
}
